<?php

/**
 * @author shuang
 * @date 2016-10-27 13:56:08
 */
use yii\helpers\Url;

$this->title = "自动刷新任务";
$this->registerCssFile("/css/validate.css");
$this->registerCssFile("/js/ui-dialog.css");
$this->registerJsFile("/js/jquery.form.min.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/Validform_v5.3.2_min.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/WdatePicker.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/dialog-plus-min.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/common.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJs('AjaxInitForm("#TaskautoReflashForm", "#btnSubmit", 1);');
echo $this->render("//layouts/breadcrumb", ["url" => Url::toRoute(["autoreflash", "id" => $id]), "title" => "自动刷新任务"]);
?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12 well ibox float-e-margins">
            <div class="ibox-title">自动刷新任务</div>
            <div class="well-content ibox-content">
                <form name="TaskautoReflashForm" method="post" action="<?php echo Url::toRoute(["autoreflash", "id" => $model->id]) ?>" id="TaskautoReflashForm" class="form-horizontal form-bordered" url="<?php echo Url::toRoute(["autoreflash", "id" => $model->id]) ?>">
                    <div class="panel-body panel-body-nopadding">
                        <input type="hidden" name="hidid" id="hidid" value="<?php echo $model->id; ?>" />
                        <div class=" control-group">
                            <label class="control-label">任务名称标题：</label>
                            <div class=" controls text"><?php echo $model->title; ?></div>
                        </div>
                        <div class=" control-group">
                            <label class="control-label">详情：</label>
                            <div class=" controls">
                                公众号：<?php echo $model->publicode; ?><br/>
                                投票链接：<?php echo $model->vote_address; ?><br/>
                                描述：<?php echo $model->description; ?>
                            </div>
                        </div>
                        <div class=" control-group">
                            <label class="control-label">刷新价格(单次)：</label>
                            <div class=" controls text"><?php echo common\components\MTools::getYiiParams("reflash_price"); ?>元</div>
                        </div>
                        <div class=" control-group">
                            <label class="control-label">连续次数：</label>
                            <div class=" controls">
                                <input name="reflashNO" type="text" id="reflashNO" class="form-control" datatype="n" placeholder="自动刷新任务的次数,刷新间隔为1小时" nullmsg="请输入自动刷新任务的次数,刷新间隔为1小时" errormsg="必须为数字" sucmsg=" " />
                            </div>
                        </div>
                        <div class=" control-group">
                            <label class="control-label"></label>
                            <div class=" controls">
                                <input name="btnSubmit" id="btnSubmit" type="submit" class="span2 btn lightblue" value="刷新" />
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>